if (OpenLayers)
	OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5;


/**
 * @class NG
 * NG core utilities and functions.
 * @singleton
 */
if (typeof NG === "undefined") {
    NG = {};
}

Ext.apply(NG, {
    platformVersion: '1.0.0',
    platformVersionDetail: {
        major: 1,
        minor: 0,
        patch: 0
    },

    windowId: 'ng-window',
    documentId: 'ng-document'
});

Ext.ns(
	    'NG.util',
	    'NG.command',
	    'NG.response',
	    'NG.constants',
	    'NG.controllers',
	    'NG.models',
	    'NG.stores',
	    'NG.views'
	);

if (NG_FIELD_NAMES) {
	NG_FIELD_NAMES.getLabel = function (key){
		if (this[key]) {
			return this[key];
		}
		return key;
	};
}